{extend name="base" /}
{block name="body"}
<div class="layui-card">
    <div class="layui-card-body">
        <form action="{:request()->url()}" class="layui-form" method="post">
            <div class="layui-form-item">
                <label class="layui-form-label">用户组</label>
                <div class="layui-input-inline">
                    <input type="text" name="name" value="{$list.name|default=''}" lay-verify="required|name" autocomplete="off" placeholder="请输入用户组" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">简称</label>
                <div class="layui-input-inline">
                    <input type="text" name="code" value="{$list.code|default=''}" lay-verify="required" autocomplete="off" placeholder="请输入简称" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">LOGO</label>
                <div class="layui-input-inline">
                    <img class="layui-upload-img" id="test-upload-normal-img" src="{$list.img|default='__IMG__/bank/banks.png'}" width="50" height="50">
                    <input type="hidden" name="img" value="{$list.img|default=''}" autocomplete="off" placeholder="" class="layui-input">
                    <button type="button" class="layui-btn ajax-avatar"><i class="fa fa-file-image-o"></i> 上传LOGO</button>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">状态</label>
                <div class="layui-input-inline">
                    <input type="hidden" name="status" value="0">
                    <input type="checkbox" name="status" value="1" lay-skin="switch" lay-text="启用|禁用" {if isset($list.status) and $list.status eq '1'}checked{/if}>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-filter="i" lay-submit="">保存</button>
                    <button class="layui-btn layui-btn-primary" type="reset">重置</button>
                </div>
            </div>
        </form>
    </div>
</div>
{/block}